#ifndef RNETWORK_H_
#define RNETWORK_H_

static const char *			DEFAULT_IP		=	"127.0.0.1";
static const unsigned short DEFAULT_PORT	=	2011;

class	RNetwork
{
public:
	RNetwork(const char * = DEFAULT_IP, unsigned short = DEFAULT_PORT);
	~RNetwork();

	void	sendToServer(sf::Packet &message);
	void	rcvFromServer(sf::Packet &message);

private:
	sf::IPAddress	_server;
	unsigned short	_port;
	sf::SocketUDP	_client;
};

#endif // ! RNETWORK_H_